home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
windows
/
wdj1096.zip
/
ZOLMAN.ZIP
/
MDIICONS.ZIP
/
ICONSVW.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1996-02-16
|
3KB
|
101 lines
// iconsvw.cpp : implementation of the CIconsView class
//
#include "stdafx.h"
#include "icons.h"
#include "iconsdoc.h"
#include "iconsvw.h"
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CIconsView
IMPLEMENT_DYNCREATE(CIconsView, CFormView)
BEGIN_MESSAGE_MAP(CIconsView, CFormView)
//{{AFX_MSG_MAP(CIconsView)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
// Standard printing commands
ON_COMMAND(ID_FILE_PRINT, CFormView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_PREVIEW, CFormView::OnFilePrintPreview)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CIconsView construction/destruction
CIconsView::CIconsView()
: CFormView(CIconsView::IDD)
{
//{{AFX_DATA_INIT(CIconsView)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
// TODO: add construction code here
}
CIconsView::~CIconsView()
{
}
void CIconsView::DoDataExchange(CDataExchange* pDX)
{
CFormView::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CIconsView)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
/////////////////////////////////////////////////////////////////////////////
// CIconsView printing
BOOL CIconsView::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CIconsView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CIconsView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
void CIconsView::OnPrint(CDC* pDC, CPrintInfo*)
{
// TODO: add code to print the controls
}
/////////////////////////////////////////////////////////////////////////////
// CIconsView diagnostics
#ifdef _DEBUG
void CIconsView::AssertValid() const
{
CFormView::AssertValid();
}
void CIconsView::Dump(CDumpContext& dc) const
{
CFormView::Dump(dc);
}
CIconsDoc* CIconsView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CIconsDoc)));
return (CIconsDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CIconsView message handlers